package cave.game;

public class InputEvent {
	
	public static enum Type {
		MOVE,
		DOWN,
		UP,
		BACK,
		MENU
	}
	
	private Type type;
	private int pointerId;
	private float x, y;
	private boolean isInUse;
	
	public void init(Type type, int pointerId, float x, float y) {
		this.type = type;
		this.pointerId = pointerId;
		this.x = x;
		this.y = y;
		isInUse = false;
	}

	public Type getType() {
		return type;
	}

	public int getPointerId() {
		return pointerId;
	}

	public float getX() {
		return x;
	}

	public float getY() {
		return y;
	}

	public boolean isInUse() {
		return isInUse;
	}
	
	public void setInUse(boolean isInUse) {
		this.isInUse = isInUse;
	}

}
